package com.greedy.bulls.stock.user.service;

import com.greedy.bulls.stock.common.exception.BusinessException;
import com.greedy.bulls.stock.common.exception.ComponentException;
import com.greedy.bulls.stock.entity.user.TradeUser;
import com.greedy.stock.common.web.vo.user.TradeUserVo;

/**
 * @Author: Yanxy
 * @Date: Created in:2023/07/29
 * Description: 用户服务接口IStockUserService
 */
public interface IStockUserService {

    /**
     * 用户登录
     * @param userNo 用户账号
     * @param userPwd 用户密码
     * @return 用户对象
     * @throws ComponentException 组件异常
     */
    TradeUser userLogin(String userNo, String userPwd) throws ComponentException;

    /**
     *  用户注册功能业务接口
     * @param tradeUserVo 用户对象
     * @return 用户对象
     * @throws BusinessException 业务异常
     * @throws ComponentException 组件异常
     */
    TradeUser userRegister(TradeUserVo tradeUserVo) throws BusinessException, ComponentException;

}
